import 'package:favorcate/core/model/category_model.dart';
import 'package:flutter/material.dart';

import 'meal_content.dart';

class ZSMealScreen extends StatelessWidget {
  static const String routeName = '/meal';

  @override
  Widget build(BuildContext context) {
    //获取参数
    final category =
        ModalRoute.of(context)?.settings.arguments as ZSCategoryModel;

    return Scaffold(
      appBar: AppBar(title: Text(category.title)),
      body: ZSMealContent(),
    );
  }
}
